package com.ssau.expert.core.model;

/**
 * Author: Sergey Saiyan
 * Created: 13.09.13 22:56
 */
public class Variable {

    protected String name;

    protected String value;

    protected Class clazz;

    protected boolean initialized = false;

    protected boolean target = false;

    @Override
    public String toString() {
        return "Variable {" +
                "name='" + name + '\'' +
                ", value=" + value +
                ", clazz=" + clazz +
                ", initialized=" + initialized +
                '}';
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
        this.initialized = true;
    }

    public boolean isInitialized() {
        return initialized;
    }

    public void setInitialized(boolean initialized) {
        this.initialized = initialized;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean getTarget() {
        return target;
    }

    public void setTarget(boolean target) {
        this.target = target;
    }
}
